/*
 * @Description: 单位导航包裹组件
 * @Author: Rfan
 * @Date: 2022-04-07 15:49:26
 * @LastEditTime: 2022-09-08 15:04:59
 */

import UFALNav from '@/components/UFALNav';
import { useScopeOfKnowledgeContext } from '../contexts/ScopeOfKnowledgeContext';

const NavSidebar = () => {
  const { setSelectFond, setSelectAT, setSelectLevel } = useScopeOfKnowledgeContext();

  const handleNavChange = ({ fondItem, atItem, levelItem }: any) => {
    setSelectFond(fondItem);
    setSelectAT(atItem);
    setSelectLevel(levelItem);
  };
  return (
    <>
      <UFALNav onChange={handleNavChange} />
    </>
  );
};

export default NavSidebar;
